﻿using SingleUserMall.Common;
using SingleUserMall.Mall.Form;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Stores.Form
{
    public class StoreViewForm : PagedForm
    {
        /// <summary>
        /// 排序选项（0：综合，1：评价升序，2：评价降序，3：销量从高到低）
        /// </summary>
        public StoreOption Option { get; set; }

        /// <summary>
        /// 商铺名 商铺描述
        /// </summary>
        public string Keywords { get; set; }
    }

    public enum StoreOption : int
    {
        /// <summary>
        /// 综合
        /// </summary>
        Normal = 0,
        /// <summary>
        /// 评价升序
        /// </summary>
        Star = 1,
        /// <summary>
        /// 评价降序
        /// </summary>
        StarDesc = 2,
        /// <summary>
        /// 销量从高到低
        /// </summary>
        SaleDesc = 3,
    }
}
